export function replaceAll(text: string, keyword: string, replacement: string) {
  if (typeof text.replaceAll === 'function') {
    return text.replaceAll(keyword, replacement)
  }
  return text.replace(new RegExp(keyword.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), 'g'), replacement)
}
